package 蓝桥杯省赛;

public class 二零二五 {
    public static void main(String[] args) {
        int count = 1;
        for (int i = 2026; i <= 20250412; i++){
            int temp = i;
            boolean a = false, b = false, c = false, d = false;
            while (temp > 0){
                switch (temp % 10) {
                    case 2:
                        if (a) {
                            c = true;
                        }
                        a = true;
                        break;
                    case 0:
                        b = true;
                        break;
                    case 5:
                        d = true;
                        break;
                }
                temp /= 10;
            }
            if (a && b && c && d) {
                count++;
            }
        }
        System.out.println(count);
    }
}
